Technote Number: 1097107
Problem:
These issues have been reported to Lotus Quality Engineering.
The 'Cannot locate field' issue was reported in Software Problem Report (SPR)
#WECG49RD5D and has been addressed in Domino Designer/Notes 5.0.7.
Excerpt from the Lotus Notes and Domino Release 5.0.7 QMR fix list (available
at http://www.notes.net):
LotusScript - Front-End Classes
SPR# WECG49RD5D - Fixed a problem where the GetSelectedText method failed to
locate the field. The error "Cannot locate field" is received.
The problem with the documentation's Help example has been reported in SPR
#MGAN4U4V47.
As a workaround for versions prior to 5.0.7, do not specify the optional field
parameter. The method then works without error, copying the contents of the
currently highlighted text. For example:
text = uidoc.GetSelectedText()Supporting Information:
Excerpt From the Notes R5 Online Help:
GetSelectedText method
Obtains the text that is highlighted in the U/I.
Note This method is new with Release 5.
Defined in
NotesUIDocument
Syntax
text$ = notesUIDocument.getSelectedText([fieldName$])
Parameters
fieldName$
String. Optional. The name of the field that contains the selected text.
Return value
text$
The selected text.
Example: GetSelectedText method
This script obtains the selected text in the current UI document and copies it
to the clipboard.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim text As String
Set uidoc = workspace.CurrentDocument
text = uidoc.GetSelectedText(body$)
uidoc.copy
End Sub
Related Documents:
More >
|  |
|
|
|
|